﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Domain.Entities;
using FwProject.Comm.ExcelUtil;

namespace FwProject.Distribution.Dto
{
    [DisplayName(displayName:"餐厅配送统计")]
    public class RestaurantDistributionView:Entity<Guid>
    {
        [Display(Name ="餐厅名称")]
        [DisplayName(displayName:"餐厅名称")]
        [ExcelDateMember(IsMultiRow =false,IsMerged =false)]
        public string RestaurantName { get; set; }
        [Display(Name ="司机id")]
        public long DriverId { get; set; }
        [Display(Name="配送司机")]
        public string Name { get; set; }
        [Display(Name ="所属工厂")]
        public Guid FactoryInfoId { get; set; }
        //[Display(Name="配送时间")]
        //public DateTime CreationTime { get; set; }
        [Display(Name = "配送箱数")]
        [DisplayName(displayName: "配送箱数")]
        [ExcelDateMember(IsSum =true)]
        public int Distributioncount { get; set; }
        [Display(Name = "配送套数")]
        [DisplayName(displayName: "配送套数")]
        [ExcelDateMember(IsSum = true)]
        public int DistributionBycount { get; set; }
        [Display(Name = "回收箱数")]
        [DisplayName(displayName: "回收箱数")]
        [ExcelDateMember(IsSum = true)]
        public int Recoverycount { get; set; }
        [Display(Name = "回收套数")]
        [DisplayName(displayName: "回收套数")]
        [ExcelDateMember(IsSum = true)]
        public int RecoveryBycount { get; set; }
        [Display(Name = "换货箱数")]
        [DisplayName(displayName: "换货箱数")]
        [ExcelDateMember(IsSum = true)]
        public int Exchangegoodscount { get; set; }
        [Display(Name = "换货套数")]
        [DisplayName(displayName: "换货套数")]
        [ExcelDateMember(IsSum = true)]
        public int ExchangegoodsBycount { get; set; }
        [Display(Name = "折损套数")]
        [DisplayName(displayName: "折损套数")]
        [ExcelDateMember(IsSum = true)]
        public int Damagecount { get; set; }
        [Display(Name = "赠送箱数")]
        [DisplayName(displayName: "赠送箱数")]
        [ExcelDateMember(IsSum = true)]
        public int Givecount { get; set; }
        [Display(Name = "赠送套数")]
        [DisplayName(displayName: "赠送套数")]
        [ExcelDateMember(IsSum = true)]
        public int Givebycount { get; set; }
        [Display(Name = "退回箱数")]
        [DisplayName(displayName: "退回箱数")]
        [ExcelDateMember(IsSum = true)]
        public int Backboxcount { get; set; }
        [Display(Name = "退回套数")]
        [DisplayName(displayName: "退回套数")]
        [ExcelDateMember(IsSum = true)]
        public int Backnumbercount { get; set; }
        [Display(Name = "金额")]
        [DisplayName(displayName: "金额")]
        [ExcelDateMember(IsSum = true)]
        public decimal TotalPrice { get; set; }
    }
}
